<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>AddPlanBasicInfo</title>
<link rel="stylesheet" type="text/css" href="../css/blueprint/screen.css" media="screen, projection"/>
<script type="text/javascript" src="../script/jquery-1.3.2.min.js"></script>
<script type="text/javascript">
    $(document).ready(function() {

        loadTempSavedData();

        $("#tempSave").click(function() {
            $.getJSON("AddPlanTempSaveYQFKMJ.action", 
                {
                    "tdfkfaBasicYqfkmj.gdmj": $("#gdmj").val(),
                    "tdfkfaBasicYqfkmj.ydmj": $("#ydmj").val(),
                    "tdfkfaBasicYqfkmj.ldmj": $("#ldmj").val(),
                    "tdfkfaBasicYqfkmj.mcdmj": $("#mcdmj").val(),
                    "tdfkfaBasicYqfkmj.qtnydmj": $("#qtnydmj").val(),
                    "tdfkfaBasicYqfkmj.jsydmj": $("#jsydmj").val(),
                    "tdfkfaBasicYqfkmj.tdfkl": $("#tdfkl").val()
                },
                function(data) {
                    if (data.tempSaveStatus == "success") {
                        $(parent.LeftFrame.document).contents().find("#tempDataSaver").val("success");
                    } else if (data.tempSaveStatus == "failed") {
                        $(parent.LeftFrame.document).contents().find("#tempDataSaver").val("failed");
                    }
                }
            );
        });
    });
    function loadTempSavedData() {
        $.getJSON("AddPlanTempLoadYQFKMJ.action", 
            function(data) {
                if (data.tdfkfaBasicYqfkmj != null) {
                    $("#gdmj").val(data.tdfkfaBasicYqfkmj.gdmj);
                    $("#ydmj").val(data.tdfkfaBasicYqfkmj.ydmj);
                    $("#ldmj").val(data.tdfkfaBasicYqfkmj.ldmj);
                    $("#mcdmj").val(data.tdfkfaBasicYqfkmj.mcdmj);
                    $("#qtnydmj").val(data.tdfkfaBasicYqfkmj.qtnydmj);
                    $("#jsydmj").val(data.tdfkfaBasicYqfkmj.jsydmj);
                    $("#tdfkl").val(data.tdfkfaBasicYqfkmj.tdfkl);
                }

                watchDataEdited();
            }
        );
    }
    function watchDataEdited() {
    	$("input[type='text'],input[type='radio'],input[type='checkbox']").change(function() {
            $(parent.LeftFrame.document).contents().find("#dataEditWatcher").val("changed");
            $(parent.LeftFrame.document).contents().find("#tempDataSaver").val("");
        });
    }
</script>
<style type="text/css">
<!--
.style2 {
	font-size: 36px;
	font-weight: bold;
}
-->
</style>
</head>
<body>
<table cellspacing="0" cellpadding="0" width="100%" border="0">
    <tr>
        <td width="20%" colspan="2"><div align="center" class="style2">预期复垦面积</div>
        <hr></hr></td>
    </tr>
    <tr>
        <td width="30%" height="25" align="right"><span style="color: red;">请选择面积单位：</span></td>
        <td><input type="radio" name="reclaimSQUnit" id="idReclaimMU" value="mu" /><label for="idReclaimMU">亩</label><input type="radio" name="reclaimSQUnit" id="idReclaimHA" value="ha" /><label for="idReclaimHA">公顷</label><input type="radio" name="reclaimSQUnit" id="idReclaimSQM" value="sq.m." /><label for="idReclaimSQM">平方米</label></td>
    </tr>
    <tr>
        <td width="30%" height="25" align="right">耕地面积：</td>
        <td><input type="text" name="gdmj"  id="gdmj"/></td>
    </tr>
    <tr>
        <td width="30%" height="25" align="right">园地面积：</td>
        <td height="25"><input type="text" name="ydmj" id="ydmj"/></td>
    </tr>
    <tr>
        <td width="30%" height="25" align="right">林地面积：</td>
        <td height="25"><input type="text" name="ldmj" id="ldmj"/></td>
    </tr>
    <tr>
        <td width="30%" height="25" align="right">牧草地面积：</td>
        <td height="25"><input type="text" name="mcdmj" id="mcdmj"/></td>
    </tr>
    <tr>
        <td width="30%" height="25" align="right">其他农用地面积：</td>
        <td><input type="text" name="qtnydmj" id="qtnydmj"/></td>
    </tr>
    <tr>
        <td width="30%" height="25" align="right">建设用地面积：</td>
        <td><input type="text" name="jsydmj" id="jsydmj"/></td>
    </tr>
    <tr>
        <td width="30%" height="25" align="right">土地复垦率：</td>
        <td height="25"><input type="text" name="tdfkl" id="tdfkl"/><input type="button" value="计算" /></td>
    </tr>
    <tr>
        <td width="20%" height="25"><div align="right"><input type="button" id="tempSave" value="暂存" /></div></td>
        <td width="30%">&nbsp;</td>
    </tr>
</table>
</body>
</html>